package com.ruoyi.fault.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 故障报修对象 fault_report
 * 
 * @author silence
 * @date 2025-07-21
 */
public class FaultReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障ID */
    private Long id;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 故障标题 */
    @Excel(name = "故障标题")
    private String faultTitle;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String faultDesc;

    /** 故障等级(1-紧急,2-重要,3-一般) */
    @Excel(name = "故障等级(1-紧急,2-重要,3-一般)")
    private Long faultLevel;

    /** 报修人 */
    @Excel(name = "报修人")
    private Long reportBy;

    /** 报修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报修时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportTime;

    /** 状态(0-待处理,1-处理中,2-已解决,3-已关闭 */
    @Excel(name = "状态(0-待处理,1-处理中,2-已解决,3-已关闭")
    private Long status;

    /** 期望完成时间 */
    private Date expectFinishTime;

    /** 故障处理信息 */
    private List<FaultRepair> faultRepairList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }

    public void setFaultTitle(String faultTitle) 
    {
        this.faultTitle = faultTitle;
    }

    public String getFaultTitle() 
    {
        return faultTitle;
    }

    public void setFaultDesc(String faultDesc) 
    {
        this.faultDesc = faultDesc;
    }

    public String getFaultDesc() 
    {
        return faultDesc;
    }

    public void setFaultLevel(Long faultLevel) 
    {
        this.faultLevel = faultLevel;
    }

    public Long getFaultLevel() 
    {
        return faultLevel;
    }

    public void setReportBy(Long reportBy) 
    {
        this.reportBy = reportBy;
    }

    public Long getReportBy() 
    {
        return reportBy;
    }

    public void setReportTime(Date reportTime) 
    {
        this.reportTime = reportTime;
    }

    public Date getReportTime() 
    {
        return reportTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setExpectFinishTime(Date expectFinishTime) 
    {
        this.expectFinishTime = expectFinishTime;
    }

    public Date getExpectFinishTime() 
    {
        return expectFinishTime;
    }

    public List<FaultRepair> getFaultRepairList()
    {
        return faultRepairList;
    }

    public void setFaultRepairList(List<FaultRepair> faultRepairList)
    {
        this.faultRepairList = faultRepairList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("faultTitle", getFaultTitle())
            .append("faultDesc", getFaultDesc())
            .append("faultLevel", getFaultLevel())
            .append("reportBy", getReportBy())
            .append("reportTime", getReportTime())
            .append("status", getStatus())
            .append("expectFinishTime", getExpectFinishTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("faultRepairList", getFaultRepairList())
            .toString();
    }
}
